import request from '@/utils/request'
import qs from 'qs'

// 03、读取文章库文章列表
export function getLibraryList(data) {
  return request({
    url: '/articleLibrary/list',
    headers: { 'content-type': 'application/x-www-form-urlencoded' },
    method: 'post',
    params: data
  })
}


// 01、文章库新增文章
export function addLibrary(data) {
  return request({
    url: '/articleLibrary/addArticle',
    method: 'post',
    data: data
  })
}
// 02、编辑处理（更新）文章
export function editLibrary(data) {
  return request({
    url: '/articleLibrary/editArticle',
    method: 'post',
    data: data
  })
}

// 04、读取文章
export function getLibraryArticle(data) {
  return request({
    url: '/articleLibrary/get',
    method: 'post',
    params: data
  })
}


// 05、删除文章
export function delLibraryArticleList(data) {
  return request({
    url: '/articleLibrary/remove',
    method: 'post',
    params: data
  })
}







